﻿@model ShoppingCart.Domain.Entities.Product

<div class="item">

    <h3>@Model.Name</h3>
    @Model.Description

    <div class="item">

    @using(Html.BeginForm("AddToCart", "Cart")) {
        @Html.HiddenFor(x => x.ProductID)
        @Html.Hidden("returnUrl", Request.Url.PathAndQuery)
        <input type="submit" value="+ Add to cart" />
    }

    </div>

    <h4>@Model.Price.ToString("c")</h4>
</div>
